#include "ScnsIcm20602.c.h"

#if defined(SCNS_ICM20602_ENABLE)&&SCNS_ICM20602_ENABLE==1

#include "ScnsQuaternion.h"

ScnsStatus scnsBspIcm20602Init(ScnsIcm20602Enum icmN)
{
    spi_init(SPI_2,SPI_MODE0,system_clock/12,SPI2_SCK_B13,SPI2_MOSI_B15,SPI2_MISO_B14,SPI2_CS_B12);
    return SCNS_STATUS_OK;
}
ScnsStatus scnsBspIcm20602PostInit(ScnsIcm20602Enum icmN)
{
    return SCNS_STATUS_OK;
}
void scnsBspIcm20602RW(ScnsIcm20602Enum icmN,uint8*val,uint32 num)
{
    spi_transfer_8bit(SPI_2,val,val,num);
}

#endif